import validator from '../validator';
// 证件验证
export class CreateRegisterInputVO_Rules {
  constructor() {
    this.idCard = {};
    this.idCard.name = [validator.required('请输入姓名')];
    this.idCard.idCardNumber = [
      {
        ...validator.required('请输入身份证号码'),
        validator: validator.checkIdNumber,
        trigger: 'onBlur'
      }
    ];
    this.idCard.idCardFrontImage = [validator.required('身份证正面不能为空', 'onChange')];
    this.idCard.idCardBackImage = [validator.required('身份证反面不能为空', 'onChange')];
  }
}
